package io.xccit.race.service;

import java.util.List;
import io.xccit.race.domain.RaceCompetitionTopic;

/**
 * 竞赛试题Service接口
 * 
 * @author ywx
 * @date 2025-10-10
 */
public interface IRaceCompetitionTopicService 
{
    /**
     * 查询竞赛试题
     * 
     * @param id 竞赛试题主键
     * @return 竞赛试题
     */
    public RaceCompetitionTopic selectRaceCompetitionTopicById(Long id);

    /**
     * 查询竞赛试题列表
     * 
     * @param raceCompetitionTopic 竞赛试题
     * @return 竞赛试题集合
     */
    public List<RaceCompetitionTopic> selectRaceCompetitionTopicList(RaceCompetitionTopic raceCompetitionTopic);

    /**
     * 根据竞赛ID查询试题列表
     * 
     * @param competitionId 竞赛ID
     * @return 竞赛试题集合
     */
    public List<RaceCompetitionTopic> selectRaceCompetitionTopicByCompetitionId(Long competitionId);

    /**
     * 新增竞赛试题
     * 
     * @param raceCompetitionTopic 竞赛试题
     * @return 结果
     */
    public int insertRaceCompetitionTopic(RaceCompetitionTopic raceCompetitionTopic);

    /**
     * 修改竞赛试题
     * 
     * @param raceCompetitionTopic 竞赛试题
     * @return 结果
     */
    public int updateRaceCompetitionTopic(RaceCompetitionTopic raceCompetitionTopic);

    /**
     * 批量删除竞赛试题
     * 
     * @param ids 需要删除的竞赛试题主键集合
     * @return 结果
     */
    public int deleteRaceCompetitionTopicByIds(Long[] ids);

    /**
     * 删除竞赛试题信息
     * 
     * @param id 竞赛试题主键
     * @return 结果
     */
    public int deleteRaceCompetitionTopicById(Long id);
}
